//
//  stock.swift
//  NewLndd
//
//  Created by 邵禹曦 on 2020/1/8.
//  Copyright © 2020 辽宁当代. All rights reserved.
//

import UIKit

class stock: NSObject {
    // MARK: - 属性
    var CON : String? = "---"    // 商品名称
    var COI : String?  = "---"     // 商品代码
    var HN : String?   = "---"       // 存货单号
    var P : String?    = "---"    // P存货价格
    var OQ : String?  = "---"  //OQ买入数量
    var HQ : String?   = "---"  //HQ存货数量
    var DQ : String?  = "---"  //DQ交收申请数量
    var HF : String?  = "---"  //HF存货金额
    var HT : String?   = "---"  // HT买入时间
    
    // MARK: - 自定义构造函数
    init(dict : [String : AnyObject]) {
        super.init()
        setValuesForKeys(dict)
        COI = (dict["COI"] as? String)
        //CON = (dict["CON"] as! String)   没有商品名称
        HN = (dict["HN"] as? String)
        P = (dict["P"] as? String)
        OQ = (dict["OQ"] as? String)
        HQ = (dict["HQ"] as? String)
        DQ = (dict["DQ"] as? String)
        HF = (dict["HF"] as? String)
        HT = (dict["HT"] as? String)
        
        
    }
    // 重写
    override func setValue(_ value: Any?, forUndefinedKey key: String) {}
}
